﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Diagnostics;

namespace SilverlightCountDownTimer.ViewModel.ViewModelBaseClass
{
    /// <summary>
    /// Base class for all ViewModels
    /// </summary>
    public abstract class ViewModelBase : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        public void OnPropertyChanged(object sender, string PropertyName)
        {
            if (PropertyChanged != null) 
            {
                PropertyChanged(sender, new PropertyChangedEventArgs(PropertyName));
            }
        }
    }
}
